package org.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.lease.model.dto.AppointmentDTO;
import org.lease.model.entity.ViewAppointment;
import org.lease.model.query.AppointmentPageQuery;
import org.lease.model.vo.AppointmentItemVo;

import java.util.List;

@Mapper
public interface ViewAppointmentMapper extends BaseMapper<ViewAppointment> {

    IPage<AppointmentDTO> pageQueryAppointment(IPage<AppointmentDTO> page, AppointmentPageQuery query);

    List<AppointmentItemVo> listItem(Long userId);
}
